﻿<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8; width=device-width" name="viewport" />
    <title>@ViewBag.Title - Electonic Shop</title>

    @Styles.Render("~/Content/bootstrap")
    @Styles.Render("~/Content/valid-field")
    @Styles.Render("~/Content/admin")
    @Styles.Render("~/Content/jqueryui") @*Thay the cho cai duoi*@
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
    @{
        if (ViewBag.Title == null)
        {
            ViewBag.Title = "";
        }

        if (ViewBag.Active == null)
        {
            ViewBag.Active = "";
        }
    }

    @Scripts.Render("~/bundle/jquery")
    @Scripts.Render("~/Scripts/bootstrap")
    @Scripts.Render("~/Scripts/validate")
    @RenderSection("scripts", required: false)
    @Scripts.Render("~/bundle/jqueryui")  @*Thay the cho cai duoi*@
    @*@Scripts.Render("~/Scripts/tinymce")*@
    @*<script src="//tinymce.cachefly.net/4.0/tinymce.min.js"></script>*@
    <script src="~/tinymce/tinymce.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            tinymce.init({
                selector: ".mceEditor"
            });
        })

    </script>
    <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>

</head>
<body>
    <nav class="navbar navbar-default" role="navigation">
        <div class="container">
            <div class="navbar-header">
                <a class="navbar-brand" href="~/Home/Index">Excell-On Services</a>
            </div>
            <div class="collapse navbar-collapse">
                <ul class="nav navbar-nav">
                    <li>
                        <a href="~/">Visit Online Store</a>
                    </li>
                </ul>

                <ul class="nav navbar-nav navbar-right">
                    <li>
                        <a href="#">Hi @Html.Encode(ExcellOnServices.Models.Account.GetCompanyInfo(int.Parse(@User.Identity.Name)).BrandName)!</a>
                    </li>
                    <li>
                        @Html.ActionLink("Logout", "Logout", "Account")
                    </li>
                </ul>
            </div>
            <!-- /.navbar-collapse -->
        </div>
        <!--/ container -->
    </nav>
    <div class="container" style="min-height: 500px">
        <div class="row">
            <div class="col-md-3">
                <div class="list-group">
                    <a href="#" class="list-group-item active">Manage Profile</a>
                    @Html.ActionLink("Edit Profile", "Edit", "Account", new { id = int.Parse(@User.Identity.Name) }, new { @class = "list-group-item" })
                    @Html.ActionLink("Change Password", "ChangePassword", "Account", new { id = int.Parse(@User.Identity.Name) }, new { @class = "list-group-item" })
                    <a href="#" class="list-group-item active">Manage Products</a>
                    @Html.ActionLink("Add Products", "Create", "Products", null, new { @class = "list-group-item" })
                    @Html.ActionLink("List Products", "Index", "Products", null, new { @class = "list-group-item" })
                    <a href="#" class="list-group-item active">Manage orders</a>
                    @Html.ActionLink("New Order", "Create", "Orders", null, new { @class = "list-group-item" })
                    @Html.ActionLink("List Orders", "Index", "Orders", null, new { @class = "list-group-item" })
                </div>
            </div>
            <div class="col-md-9">
                @RenderBody()
            </div>
        </div>
    </div>

    <footer class="text-center">
        <p>&COPY; Company 2013</p>
    </footer>

</body>
</html>
